dsh-image-skin: Generate DSH theme color scheme from an image, with a desktop pet
dsh-image-skin is a DSH web-based image skin plugin (MIT, v0.1.0) based on the core philosophy of "everything is a plugin". After users upload PNG/JPG/WebP images, the plugin extracts primary, secondary, and accent colors via k-means clustering to automatically generate a pair of light and dark theme tokens, ensuring the background, panels, sidebars, borders, and text colors follow the image's tone. Meanwhile, the image serves as the page background, paired with semi-transparent panels featuring adjustable opacity and blur (canvas pre-baked). The gallery is displayed as a thumbnail grid, with status saved in `localStorage` for automatic restoration upon restart. The plugin also includes optional desktop pets with five characters (cat, rabbit, whale, dragon, and Shiba Inu), which can greet, hide, and be dragged and dropped. Furthermore, they poll the host API to detect the agent's working status, entering a "thinking mode" and providing a notification upon completion. Installation
Read More